package com.csy.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.csy.admin.entity.SysRole;


import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author csy
 * @since 2018-09-11
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
    /**
     * 根据账号获取用户角色
     * @param userCode
     * @return
     */
    List<SysRole> selectRoleByUserCode(String userCode);
}
